package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/1/23 15:37
 * Dest   个人信息
 */

public class UserInfoBean implements Parcelable {
    public String userId;
    public String token;
    public String nickname;

    public String imgurl;
    public String signature;

     public String sex;
     public String username;

     private int count;
     private  MyVisitorBean myVisitor;
     private  MyBrokerageBean brief;

    protected UserInfoBean(Parcel in) {
        userId = in.readString();
        token = in.readString();
        nickname = in.readString();
        imgurl = in.readString();
        signature = in.readString();
        sex = in.readString();
        username = in.readString();
        count = in.readInt();
        myVisitor = in.readParcelable(MyVisitorBean.class.getClassLoader());
        brief = in.readParcelable(MyBrokerageBean.class.getClassLoader());
    }

    public static final Creator<UserInfoBean> CREATOR = new Creator<UserInfoBean>() {
        @Override
        public UserInfoBean createFromParcel(Parcel in) {
            return new UserInfoBean(in);
        }

        @Override
        public UserInfoBean[] newArray(int size) {
            return new UserInfoBean[size];
        }
    };

    public MyBrokerageBean getBrief() {
        return brief;
    }

    public void setBrief(MyBrokerageBean brief) {
        this.brief = brief;
    }

    public MyVisitorBean getMyVisitor() {
        return myVisitor;
    }

    public void setMyVisitor(MyVisitorBean myVisitor) {
        this.myVisitor = myVisitor;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getImgurl() {
        return imgurl;
    }

    public void setImgurl(String imgurl) {
        this.imgurl = imgurl;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public UserInfoBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(userId);
        dest.writeString(token);
        dest.writeString(nickname);
        dest.writeString(imgurl);
        dest.writeString(signature);
        dest.writeString(sex);
        dest.writeString(username);
        dest.writeInt(count);
        dest.writeParcelable(myVisitor, flags);
        dest.writeParcelable(brief, flags);
    }
}
